package unit;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import org.je.log.JLog;

public class DeleteNotUsePic
{
	private static String		path		= "D:/zpic/surface";
	private static List<int[]>	deleteList	= new ArrayList<int[]>();
	static {
		deleteList.add(new int[] { 192, 199 });
		deleteList.add(new int[] { 328, 391 });
		deleteList.add(new int[] { 456, 535 });
	}

	public static void main(String[] args) {
		File f = new File(path);
		for(File  f2 : f.listFiles()){
			
			for(File f3 : f2.listFiles()){
				delete(f3.getPath());
			}
			
		}

	}

	private static void delete(String url) {
		for (int[] mm : deleteList) {
			for (int i = mm[0]; i <= mm[1]; ++i) {
				File f = new File(url+"/000" + i + ".bmp");
				f.delete();
			}
		}
	}

}
